package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("equipment_repair")
@ApiModel(value = "设备维修申请")
public class EquipmentRepair {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("申请单位")
    private String applicationUnit;

    @ApiModelProperty("申请年份")
    private Integer applicationYear;

    @ApiModelProperty("申请月份")
    private Integer applicationMonth;

    @ApiModelProperty("申请日期")
    private Integer applicationDay;

    @ApiModelProperty("设备名称规格")
    private String equipmentNameSpec;

    @ApiModelProperty("设备编号")
    private String equipmentCode;

    @ApiModelProperty("维修时间")
    private String repairTime;

    @ApiModelProperty("验收合格时间")
    private String acceptanceTime;

    @ApiModelProperty("维修原因")
    private String repairReason;

    @ApiModelProperty("申请人")
    private String applicant;

    @ApiModelProperty("主管")
    private String supervisor;

    @ApiModelProperty("维修记录")
    private String repairRecords;

    @ApiModelProperty("维修人")
    private String repairPerson;

    @ApiModelProperty("维修主管")
    private String supervisorRepair;

    @ApiModelProperty("外修详情")
    private String outsideRepairDetails;

    @ApiModelProperty("外修申请人")
    private String applicantOutside;

    @ApiModelProperty("经理")
    private String manager;

    @ApiModelProperty("核准人")
    private String approver;

    @ApiModelProperty("采购核价")
    private String purchaseVerification;

    @ApiModelProperty("采购确认")
    private String purchaseConfirmation;

    @ApiModelProperty("总经理审核")
    private String gmReview;

    @ApiModelProperty("总经理")
    private String generalManager;

    @ApiModelProperty("验收详情")
    private String acceptanceDetails;

    @ApiModelProperty("确认人")
    private String confirmation;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;
}